package io.lckgroup.modules.lck.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.lckgroup.modules.lck.entity.CommonCommentEntity;
import io.lckgroup.modules.lck.form.wxgzh.CommentWxgzhForm;
import io.lckgroup.modules.lck.form.wxgzh.MerchantComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 顾客评论表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:38
 */
@Mapper
public interface CommonCommentDao extends BaseMapper<CommonCommentEntity> {

    IPage<CommentWxgzhForm> getMyCommentByState(Page page, @Param("auditState") String auditState, @Param("id") Long id);

    IPage<MerchantComment> merchantCommentList(Page page, @Param("merchantId") String merchantId);
}
